package com.hsjk.szwj.module.train.convert;

import com.hsjk.szwj.module.train.controller.app.vo.question.AppMemberPaperRecordReqVO;
import com.hsjk.szwj.module.train.controller.app.vo.question.AppMemberPaperRecordRespVO;
import com.hsjk.szwj.module.train.controller.app.vo.question.AppQuestionActionRecordReqVO;
import com.hsjk.szwj.module.train.controller.app.vo.question.AppQuestionChapterListRespVO;
import com.hsjk.szwj.module.train.dal.dataobject.question.MemberPaperRecordDO;
import com.hsjk.szwj.module.train.dal.dataobject.question.MemberQuestionRecordDO;
import com.hsjk.szwj.module.train.dal.dataobject.question.QuestionChapterDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author chenjiawei
 * @desc
 * @Date 2023/09/03 11:25
 **/
@Mapper
public interface QuestionConvert {
    QuestionConvert INSTANCE = Mappers.getMapper(QuestionConvert.class);

    List<MemberQuestionRecordDO> convertMemberQuestionRecordList(List<AppQuestionActionRecordReqVO> reqVOList);

    List<AppQuestionActionRecordReqVO> convertAppQuestionActionRecordList(List<MemberQuestionRecordDO> doList);

    MemberPaperRecordDO convertMemberPaperRecord(AppMemberPaperRecordReqVO reqVO);

    MemberQuestionRecordDO convertMemberQuestionRecordDO(AppQuestionActionRecordReqVO recordReqVO);

    AppMemberPaperRecordRespVO convert(MemberPaperRecordDO recordDO);

    List<AppQuestionChapterListRespVO> convert(List<QuestionChapterDO> chapterDOs);
}
